﻿using System.Collections.Generic;
using eCommerce.db.DALRespository;
using eCommerce.db.DataRespository;

namespace eCommerce.db.BORespository
{
    public class AdvBo
    {
        public static List<AdvEntity> GetListByTypeId(int typeId)
        {
            return AdvDal.GetListByTypeId(typeId);
        }

        public static AdvEntity GetById(int id)
        {
            return AdvDal.GetById(id);
        }

        public static void Create(AdvEntity o)
        {
            AdvDal.Create(o);
        }

        public static void UpdateUrl(int id, string url)
        {
            AdvDal.UpdateUrl(id, url);
        }

        public static void Delete(int id)
        {
            AdvDal.Delete(id);
        }

        public static void DeleteByType(int typeId)
        {
            AdvDal.DeleteByType(typeId);
        }   
    }
}
